var app = getApp()
Page({

  data: {

    dataList: [
     
    ]
  },
  onLoad: function () {
    var that = this
    var dataList = this.data.dataList
    wx.request({
      url: app.appData.contextPath + 'findAllMessageLatlonSetvlet',
      data: {
        phone: app.appData.systemUser.phone
      },
      header: {
        'content-type': 'application/json' // 默认值
      },
      success: function (res) {
        console.log(res.dataq)
        var latlonAway = res.data
        console.log(latlonAway.length + 'changdu')
        for (var i = 0; i < latlonAway.length; i++) {
          dataList[i] = latlonAway[i];
        }
        that.setData({
          dataList: dataList
        });
      }
    })
  }

})
